/* ============ 步骤条容器 ============ */

.steps-wrapper {
    display: flex;
    flex-direction: column;
}

.steps-wrapper.steps-horizontal {
    flex-direction: row;
    align-items: flex-start;
}

.steps-wrapper.steps-vertical {
    flex-direction: column;
}

/* ============ 步骤项 ============ */

.steps-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    flex: 1;
}

.steps-horizontal .steps-item {
    flex-direction: column;
    align-items: center;
}

.steps-vertical .steps-item {
    flex-direction: row;
    margin-bottom: 24px;
}

.steps-item:not(:last-child)::after {
    content: '';
    position: absolute;
    background: #f0f0f0;
}

.steps-horizontal .steps-item:not(:last-child)::after {
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    transform: translateX(-50%);
}

.steps-vertical .steps-item:not(:last-child)::after {
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% - 40px);
}

/* ============ 步骤头 ============ */

.steps-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.steps-horizontal .steps-head {
    margin-bottom: 16px;
}

.steps-vertical .steps-head {
    margin-right: 16px;
}

/* ============ 步骤号 ============ */

.steps-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.steps-item.active .steps-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.steps-item.completed .steps-number {
    background: #52c41a;
    border-color: #52c41a;
    color: white;
}

.steps-item.error .steps-number {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.steps-item.disabled .steps-number {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ 步骤内容 ============ */

.steps-content {
    flex: 1;
}

.steps-horizontal .steps-content {
    text-align: center;
}

.steps-vertical .steps-content {
    text-align: left;
}

.steps-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.steps-item.disabled .steps-title {
    opacity: 0.6;
}

.steps-description {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.steps-item.disabled .steps-description {
    opacity: 0.6;
}

/* ============ 大小 ============ */

.steps-small .steps-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.steps-small .steps-title {
    font-size: 12px;
}

.steps-small .steps-description {
    font-size: 11px;
}

.steps-large .steps-number {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.steps-large .steps-title {
    font-size: 16px;
}

.steps-large .steps-description {
    font-size: 13px;
}

/* ============ 响应式 ============ */

@media (max-width: 768px) {
    .steps-item {
        margin-bottom: 20px;
    }

    .steps-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .steps-title {
        font-size: 13px;
    }

    .steps-description {
        font-size: 11px;
    }

    .steps-horizontal .steps-head {
        margin-bottom: 12px;
    }

    .steps-vertical .steps-head {
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .steps-wrapper.steps-horizontal {
        flex-direction: column;
    }

    .steps-horizontal .steps-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .steps-horizontal .steps-item:not(:last-child)::after {
        display: none;
    }

    .steps-horizontal .steps-head {
        margin-bottom: 0;
        margin-right: 12px;
    }

    .steps-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .steps-title {
        font-size: 12px;
    }

    .steps-description {
        font-size: 10px;
    }
}
